package file;

import java.io.DataOutputStream;
import java.io.FileInputStream;
import java.net.Socket;

public class fileclient {
	public static void main(String[] args) throws Exception{
		Socket soc=new Socket("127.0.0.1", 5555);
		FileInputStream input=new FileInputStream("");
		DataOutputStream out=new DataOutputStream(soc.getOutputStream());
		byte[]data=new byte[1024];
		while(true){
			if((new String(data)).contains("end")){
				out.write(data);
				out.flush();
			}
			else{
				out.writeBytes("end");
				break;
			}
			soc.close();input.close();
		}
	}
}
